/*
 * Created by 2006-6-30 下午07:04:21
 * $Id: Album163.java 86 2006-07-10 15:41:18Z wjx $
 */
package com.someok.service.photo.domain;

/**
 * 163的相册信息.
 * 增加了相册的"秘密"属性.
 * 
 * <p><a href="Album163.java.html"><i>View Source</i></a></p>
 *
 * @author wjx
 * @version $Revision: 86 $ $Date: 2006-07-10 23:41:18 +0800 (星期一, 10 七月 2006) $
 */
public class Album163 extends Album {
	/** 该相册在163相册中的id */
	String album163Id;
	
	/** 相册是否被设置为秘密.缺省为false. */
	boolean privacy = false;
	
	/** 相片数量. */
	int count = 0;

	public Album163(String id, String album163Id, String title, String description, String url, int count, boolean privacy) {
		super(id, title, description, url);
		
		this.album163Id = album163Id;
		this.count = count;
		this.privacy = privacy;
	}
	
	public Album163() {
	}

	public String getAlbum163Id() {
		return album163Id;
	}

	public void setAlbum163Id(String album163Id) {
		this.album163Id = album163Id;
	}

	/**
	 * 相册属性: 1: 开放; 2:秘密.
	 * 
	 * @param flag
	 * @return
	 */
	public static boolean isPrivacy(int flag) {
		return (flag == 1) ? false : true;
	}

	public boolean isPrivacy() {
		return privacy;
	}

	public void setPrivacy(boolean privacy) {
		this.privacy = privacy;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}
	
}
